package com.aiyige.arouter.eventbus;

public class EventHomePageRouter {
    int jumpIndex = 0;

    private EventHomePageRouter(Builder builder) {
        setJumpIndex(builder.jumpIndex);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public int getJumpIndex() {
        return jumpIndex;
    }

    public void setJumpIndex(int jumpIndex) {
        this.jumpIndex = jumpIndex;
    }


    public static final class Builder {
        private int jumpIndex;

        private Builder() {
        }

        public Builder jumpIndex(int val) {
            jumpIndex = val;
            return this;
        }

        public EventHomePageRouter build() {
            return new EventHomePageRouter(this);
        }
    }
}
